using System.Windows;
using System.Windows.Controls;

namespace ContosoDashboard
{
    public partial class InstallationPage : UserControl
    {
        public InstallationPage()
        {
            InitializeComponent();
        }

        private void ButtonClick(object sender, RoutedEventArgs e)
        {
            if (Application.Current.InstallState != InstallState.Installed)
                Application.Current.Install();
        }
    }
}